package com.hula.onion.book.server.spider.platforms.shitoujinrong;

import com.hula.onion.book.server.common.LoginForm;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by work on 2018/1/24.
 */
@Component
public class ShiTouSpiderHelper {
    /**
     * 组装请求参数
     *
     * @param form
     * @return
     */
    public Map<String, Object> installRequestParams(LoginForm form) {
        Map<String, Object> map = new HashMap<>(5);
        map.put("type","2");
        map.put("uid","MjAxODAxMjQyMjA5MDUwLjc4OTYxODQwMTM2NDk0MDg=");
        map.put("loginName",form.getUserName());
        map.put("password", form.getPassword());
        map.put("verifyCode", "");
        return map;
    }
}
